<template>
  <a-button class="be-button" v-bind="$attrs">
    <!-- 默认插槽 -->
    <template #default>
      <slot></slot>
    </template>
    <!-- 图标插槽 -->
    <template #icon>
      <slot name="icon"></slot>
    </template>
  </a-button>
</template>

<script setup lang="ts">
defineOptions({
  name: 'BeButton',
  inheritAttrs: false
})
</script>
<style lang="scss">
.be-button {
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
